package com.java0108;

public class Thread01 {
    public static void main(String[] args) {
        S1 s1 = new S1();
        s1.start();
        S1 s11 = new S1();
        s11.start();

    }
}
class S1 extends Thread{
    @Override
    public void run() {
        while (true){
            System.out.println(Thread.currentThread().getName());
        }
    }
}